//  https://iai.sh.cn/problem/423
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    int tao = 0;
    for (int i = 1; i <= n; i++)
    {
        tao = (tao + 1) * 2;
    }
    cout << tao;
    return 0;
}
